// SPDX-License-Identifier: MIT

$color-wcag-bg-passed: #388e3c;
$color-wcag-bg-failed: #ef5350;
$color-wcag-fg:        white;

#color-palette {

  -fx-spacing: 20px;
  -fx-background-color: -color-bg-default; // mandatory base bg for flatten color calc

  >.grid {
    -fx-vgap: 20px;
    -fx-hgap: 40px;

    >.block {
      -fx-spacing: 5px;

      >.rectangle {
        -fx-min-width: 12em;
        -fx-min-height: 5em;
        -fx-max-width: 12em;
        -fx-max-height: 5em;
        -fx-cursor: hand;

        &:passed>.contrast-level-label {
          -fx-background-color: $color-wcag-bg-passed;
        }

        >.contrast-level-label {
          -fx-text-fill: $color-wcag-fg;
          -fx-background-color: $color-wcag-bg-failed;
          -fx-background-radius: 6px;
          -fx-padding: 3px;

          >.ikonli-font-icon {
            -fx-fill: $color-wcag-fg;
            -fx-icon-color: $color-wcag-fg;
          }
        }
      }
    }
  }
}